package com.servlet;

import org.aspectj.lang.ProceedingJoinPoint;

import com.module.sys.LoginSession;

public class PermissionFilter {
	public Object testAuth(ProceedingJoinPoint point) throws Throwable {
		String user = LoginSession.getUserid();
		if (user != null) {
			return point.proceed();
		} else {
			throw new RuntimeException("已超时，请再登录");
		}

	}
}
